package com.lxl.priv.zip;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Administrator
 */
public class Main {
    public static void main(String[] args) {
        String str = "Hello, world!";
        Set<String> set = new HashSet<>();
        set.add("world");
        set.add("Java");

        boolean contains = true;
        for (String s : set) {
            if (str.contains(s)) {
                System.out.println("s = " + s);
                contains = false;
                break;
            }
        }

        System.out.println("Contains set values? " + contains);
    }
}
